package cn.ffcs.bpm.service;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import java.util.List;

import cn.ffcs.share.model.ShareReference;

import cn.ffcs.base.service.BaseService;
import cn.ffcs.bpm.model.ProcessStep;
import cn.ffcs.common.dao.AttachDAO;
import cn.ffcs.common.model.Attach;

/**
 * 共享资料服务层<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">pany</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:</td>
 * <td>修改人:</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author pany
 * @version $Id$
 */
public class ProcessStepService<D extends ProcessStep> extends BaseService<D>
implements IProcessStepService<D>
{
    private AttachDAO attachDAO;
    /**
     * 删除操作
     * @param baseEntity
     */
    public void remove(D processStep){
        if (processStep!=null){
            super.remove(processStep);
        }
    }
    /**
     * 批量删除操作
     * @param baseEntity
     */
    public void batchDel(String[] ids){
        for (String id : ids){
            D processStep=this.findById(new Integer(id));
            remove(processStep);
        }
    }
    
    public AttachDAO getAttachDAO()
    {
        return attachDAO;
    }
    public void setAttachDAO(AttachDAO attachDAO)
    {
        this.attachDAO = attachDAO;
    }
    
}
